<?php
	class ArticleControl extends Control {
		public function index(){
			$id=$_GET['id'];
			if(!$this->view->iscached('index.tpl',$id)){
				//公共部分
				$str=file_get_contents(CONFIG_DIR.'/public.conf');
				eval($str);
				$article=new ArticleModel();
				$singleArticleData=$article->fetchRow($id);
				$this->view->assign('singleArticleData',$singleArticleData);
			}
			
			$this->view->display('index.tpl',$id);
		}
	}
?>